import request from '@/utils/http.js'

// 秒杀商品关系
export const saveSeckSkuRelationApi = (data) => {
    return request({
        url: 'sms/backend/sRelation/save',
        method: "POST",
        data: JSON.stringify(data),
    })
}

// 获取秒杀场次列表
export const getSeckSkuRelationListApi = (params) => {
    return request({
        url: 'sms/backend/sRelation/list',
        method: "GET",
        params: params,
    })
}

// 保存设置秒杀商品信息
export const updateSeckillSkuRelationApi = (data) => {
    return request({
        url: 'sms/backend/sRelation/update',
        method: "PUT",
        data: JSON.stringify(data),
    })
}

// 删除秒杀商品信息
export const deleteSeckillSkuRelationApi = (ids) => {
    return request({
        url: 'sms/backend/sRelation/delete',
        method: "DELETE",
        data: JSON.stringify(ids),
    })
}